
<div class="side-bar-left">
    <div class='side-bar-left-header'>
        SideBar
    </div>
    <ul>
        <li style="background: #9CC14F;"><a href=""> New User </a> </li>
        <li><a href=""> Store Enter </a> </li>
        <li><a href=""> New Catagory </a> </li>
    </ul>
</div>

<div class="middle-contenter">
    <div class='dashboard-contenter-header'>
        <a style='text-decoration: none;' href="<?php echo base_url(); ?>index.php/site/members_area/">Home &gt; </a>
        User
    </div>
    <center>
    <table class="listdata">
        <thead>
            <tr>
                <th>First Name</th>
                <th>Last Name</th>
                <th>Email</th>
                <th>User Level</th>
                <th>Status</th>
                <th></th>
                <th></th>
            </tr>
        </thead>
        <tbody>
    <?php 
            //echo 'hello';        
        foreach($userlist as $user)
        {
            echo '<tr class="even">';
            echo '<td>' . $user->first_name .'</td>';
            echo '<td>'. $user->last_name .'</td>';
            echo '<td>'. $user->user_name .'</td>';
            echo '<td>'. $user->user_type_id .'</td>';
            echo '<td>'. $user->user_active .'</td>';
            echo '<td><a class="edit-event" href="'. base_url() .'index.php/user/update_user/'. $user->id_user .'/"><img src="'. base_url() .'/images/edit.png"/></a> </td>';
            echo '<td><a class="delete-event" href="'. base_url() .'index.php/user/delete_user/'. $user->id_user .'/"><img src="'. base_url() .'/images/delete.png"/></a> </td>';
            echo '</tr>';            
        }
    ?>
        </tbody>
    </table>
    </center>
</div>